﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Backend.JYD.Model.Rate;

namespace Backend.JYD.IDAL.Rate
{
    public interface IRateModel
    {
        long AddRateModel(RateModel model);

        bool UpdateRateModel(RateModel info);

        bool CancelRateModel(Int64 bidId);

        RateModel GetRateModelByModelId(Int64 modelId);

        IList<Model.Rate.RateModel> loadChildModels(Int64 modelId, Int64 version);

        IList<RateModel> loadAllModels();

        bool SaveTree(RateModel model);

    }
}
